<script setup lang="ts">
// import { ref } from 'vue';
// import HelloWorld from './components/HelloWorld.vue'
import DragTest from './components/DragTest.vue'

// const inputValue = ref('');
// const draggable = document.getElementById('draggable');
// draggable?.addEventListener('dragstart', (event) => {
//   event.dataTransfer.setData('text/plain', null); // 必须设置以启用拖动
//   console.log('拖动开始');
// });
// draggable?.addEventListener('drag', (event) => {
//   console.log('拖动中');
// });
// draggable?.addEventListener('dragend', (event) => {
//   console.log('拖动结束');
// });
// const dropzone = document.getElementById('dropzone');
// dropzone?.addEventListener('dragover', (event) => {
//   event.preventDefault(); // 必须阻止默认行为以允许放置
//   console.log('拖动经过');
// });
// dropzone?.addEventListener('drop', (event) => {
//   event.preventDefault();
//   console.log('放置完成');
// });
</script>

<template>
  <!-- <div>
    <a href="https://vitejs.dev" target="_blank">
      <img src="/vite.svg" class="logo" alt="Vite logo" />
    </a>
    <a href="https://vuejs.org/" target="_blank">
      <img src="./assets/vue.svg" class="logo vue" alt="Vue logo" />
    </a>
  </div> -->
  <!-- <div id="draggable" draggable="true">拖动我！</div> -->
  <DragTest/>
</template>

<style scoped>
.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.vue:hover {
  filter: drop-shadow(0 0 2em #42b883aa);
}
</style>
